package com.swang.pms.dal;

import java.util.List;
import java.util.Map;

import com.swang.pms.model.entity.ManageRole;
import org.springframework.stereotype.Repository;
import com.swang.pms.model.dto.ManageRoleDto;

/**
 * @ClassName: ManageRoleDao
 * @Description: 角色服务Dao
 * @author 王泽
 * @date 2017年3月16日 下午9:45:51
 */
@Repository
public interface ManageRoleDao {
    int deleteByPrimaryKey(Long id);

    int insert(ManageRole record);

    int insertSelective(ManageRole record);

    ManageRole selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ManageRole record);

    int updateByPrimaryKey(ManageRole record);

    List<ManageRoleDto> selectsBySelf(ManageRoleDto dto);

    int deleteAllMenusByRoleId(Long roleid);

    int insertRoleMenu(ManageRoleDto dto);

    List<Long> getMenuIdsByRoleId(Long roleid);

    List<Map<String, Object>> findPageDataByDto(ManageRoleDto dto);

    int findPageDataCountByDto(ManageRoleDto dto);

    int countRole(ManageRole po);
}
